/*
 *  StringExtension.cpp
 *  EidoTron
 *
 *  Created by Luca Di Franco on 09/03/11.
 *  Copyright 2011 Luca Di Franco. All rights reserved.
 *
 */

#include "StringExtension.h"

int countChars(const char* string, char character)
{
	int n = 0;
	for(int i = 0; string[i] != '\0'; i++)
		if (string[i] == character)
			n++;
	return n;
}